import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import axios from 'axios'
import './assets/css/global.css'
import * as echarts from 'echarts'


Vue.config.productionTip = false
Vue.prototype.$http = axios;
Vue.prototype.$echarts = echarts
axios.defaults.baseURL="https://zhende.cool/"
axios.interceptors.request.use(config => {
  config.headers.authorization = window.sessionStorage.getItem('token')
  return config
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
